package com.yzc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.yzc.model.entity.Announcement.AnnouncementBean;
import com.yzc.model.query.system.AnnouncementReq;
import com.yzc.model.vo.system.AnnouncementVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AnnouncementMapper extends BaseMapper<AnnouncementBean> {
    AnnouncementVo acquireNewAnnouncement();

    List<AnnouncementBean> getAnnouncementContent(String content);

    List<AnnouncementVo> loadAnnouncementByUserId(Integer id);

    void releaseAnnouncement(AnnouncementReq announcementReq);

    void updateAnnouncement(AnnouncementVo announcementVo);

    List<AnnouncementVo> selectAnnouncement(@Param("content") String content,@Param("publisherId") Integer publisherId);
}
